package com.dingding.manager.common.beans.sys;

import java.util.Date;

/**
 * 
* @ClassName: DdSysRole 
* @Description: 角色信息表
* @author SUNZHICHENG 
* @date 2016年12月2日 上午10:51:47 
* @version V2.6.2
 */
@SuppressWarnings("serial")
public class SysRole implements java.io.Serializable {

	private Integer sysRoleId;	//主键ID
	private String roleName;	//角色名称
	private String roleEnName;	//英文角色名称
	private int roleType;		//角色类型
	private int roleStatus;		//角色状态  是否可用 0 ：否 1： 是
	private int dataScope;		//数据范围 1：所有数据 2：所在公司及以下数据3：所在公司数据 4：所在部门及以下数据 5：所在部门数据 6 ：仅本人数据
	private int createUserId;	//创建者
	private Date createTime;	//创建时间
	private Integer updateUserId;	//更新者
	private Date updateTime;		//更新时间
	private String remarks;			//备注信息
	private int delFlag;			//删除标记 0 未删除 1  已删除
	
	// 数据范围（1：所有数据；2：所在公司及以下数据；3：所在公司数据；4：所在部门及以下数据；5：所在部门数据；8：仅本人数据；9：按明细设置）
	public static final String DATA_SCOPE_ALL = "1";
	public static final String DATA_SCOPE_COMPANY_AND_CHILD = "2";
	public static final String DATA_SCOPE_COMPANY = "3";
	public static final String DATA_SCOPE_OFFICE_AND_CHILD = "4";
	public static final String DATA_SCOPE_OFFICE = "5";
	public static final String DATA_SCOPE_SELF = "8";
	public static final String DATA_SCOPE_CUSTOM = "9";
	
	

	public SysRole() {
	}

	public SysRole(String roleName, String roleEnName, int roleType, int roleStatus, int createUserId,
			Date createTime, int delFlag, int dataScope) {
		this.roleName = roleName;
		this.roleEnName = roleEnName;
		this.roleType = roleType;
		this.roleStatus = roleStatus;
		this.dataScope = dataScope;
		this.createUserId = createUserId;
		this.createTime = createTime;
		this.delFlag = delFlag;
	}

	public SysRole(String roleName, String roleEnName, int roleType, int roleStatus, int createUserId,
			Date createTime, Integer updateUserId, Date updateTime, String remarks, int delFlag, int dataScope) {
		this.roleName = roleName;
		this.roleEnName = roleEnName;
		this.roleType = roleType;
		this.roleStatus = roleStatus;
		this.dataScope = dataScope;
		this.createUserId = createUserId;
		this.createTime = createTime;
		this.updateUserId = updateUserId;
		this.updateTime = updateTime;
		this.remarks = remarks;
		this.delFlag = delFlag;
	}
	
	
	public int getDataScope() {
		return dataScope;
	}

	public void setDataScope(int dataScope) {
		this.dataScope = dataScope;
	}

	public Integer getSysRoleId() {
		return this.sysRoleId;
	}

	public void setSysRoleId(Integer sysRoleId) {
		this.sysRoleId = sysRoleId;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleEnName() {
		return this.roleEnName;
	}

	public void setRoleEnName(String roleEnName) {
		this.roleEnName = roleEnName;
	}

	public int getRoleType() {
		return this.roleType;
	}

	public void setRoleType(int roleType) {
		this.roleType = roleType;
	}

	public int getRoleStatus() {
		return this.roleStatus;
	}

	public void setRoleStatus(int roleStatus) {
		this.roleStatus = roleStatus;
	}

	public int getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(int createUserId) {
		this.createUserId = createUserId;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUpdateUserId() {
		return this.updateUserId;
	}

	public void setUpdateUserId(Integer updateUserId) {
		this.updateUserId = updateUserId;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public int getDelFlag() {
		return this.delFlag;
	}

	public void setDelFlag(int delFlag) {
		this.delFlag = delFlag;
	}

}
